<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="../basePath.jsp" %>
<html>
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>team list</title>
</head>
<body>

	<table>
		<tr>
			<td>
				<a href="team/show" target="_self">add team</a>&nbsp;
				<a href="#" target="_self">home page</a>&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				<table border="1">
					<tr>
						<th>id</th>
						<th>name</th>
						<th>rating</th>
						<th>operation</th>
					</tr>
					<c:forEach items="${teams }" var="team">
						<tr>
							<td>${team.id }</td>
							<td>${team.name }</td>
							<td>${team.rating }</td>
							<td>
								<a href="team/show/${team.id }">Edit</a><br /> 
								<a href="team/delete/${team.id }">Delete</a>
							</td>
						</tr>
					</c:forEach>
				</table>
			</td>
		</tr>
	</table>

</body>
</html>